﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATM
{
    class DoneState: State
    {
        ATM machine;

        public DoneState(ATM machine)
        {
            this.machine = machine;
        }

        public string InsertCard()
        {
            return "There is card inside the card slot";
        }

        public string EjectCard()
        {
            machine.SetState(machine.GetNoCardState());
            return "Get your card back";
        }

        public bool EnterPIN(int pin, int[] pins)
        {
            return false;
        }

        public bool ChooseCash()
        {
            return false;
        }

        public void ChooseTransfer()
        {
            throw new NotImplementedException();
        }

        public bool ChooseDeposite()
        {
            return false;
        }

        public bool InsertEnvelope()
        {
            return false;
        }

        public void EnterAmount()
        {          
        }

        public void EnterAccountTarget()
        {
            throw new NotImplementedException();
        }

        public bool EnterReturnToMenu()
        {
            machine.SetState(machine.GetHasPinState());
            return true;
        }
    }
}
